﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Xml;
using System.Xml.Serialization;
using Baggr.FeedParser;
using FeedReader;

namespace Baggr.Agent
{
    public class AgentTask
    {
        private IEnumerable<IFeed> _Feeds;
        public AgentTask()
        {
            var context = new FeedDataContext();
            _Feeds = context.GetFeedsForUpdate(Agent.Default.FeedsPerThread).Cast<IFeed>();
        }
        public void Execute()
        {
            foreach (var feed in _Feeds)
            {
                WebRequest.Create(feed.Link);
            }
        }
        public static void Do()
        {
            
        }
    }
}
